<!doctype html>
<html lang="en" >
<head>
  <meta charset="UTF-8" xmlns:th="http://www.thymeleaf.org">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
  <title>显示所有用户</title>
</head>
<body>
<table class="table">
  <caption>用户的基本信息</caption>
  <thead>
  <tr>
    <th>序号</th>
    <th>名字</th>
    <th>性别</th>
    <th>年龄</th>
  </tr>
  </thead>
  <!--/*@thymesVar id="users" type="com.example.demo4.domain.User"*/-->
  <!--/*@thymesVar id="user" type="com.example.demo4.domain.User"*/-->
  <tr th:each="user:${users}">
    <td th:text="${user.id}"></td>
    <td th:text="${user.name}"></td>
    <td th:text="${user.sex}"></td>
    <td th:text="${user.age}"></td>
  </tr>
</table>
</body>
</html>